package com.hanhy.test;

import com.hanhy.Page.BidIndexPage;
import com.hanhy.Page.CreateBidProjectPage;
import org.openqa.selenium.WebDriver;
import org.testng.annotations.Test;

/**
 * Created by Administrator on 2016/12/20.
 * 一、所有的新建竞价用例：
 * 1、创建打包采购项目：手动添加采购品
 */
public class CreateBidProject
{
    WebDriver driver = null;
    CreateBidProjectPage createBidProjectPage = null;
    //为保证整个用例的执行过程中，使用的是一个webdriver
    public WebDriver getDriver(){
        BidProjectIndex bidProjectIndex = new BidProjectIndex();
        this.driver = bidProjectIndex.getDriver();
        return this.driver;
    }

    @Test(description = "填写项目基本信息",dependsOnMethods = {"BidProjectIndex.getIntoBidCreate"})
    public void fillProjectInfo(){
        try {
            createBidProjectPage = new CreateBidProjectPage(this.driver);
        } catch (Exception e) {
            e.printStackTrace();
        }
//        createBidProjectPage.fillProjectInfo();
    }




}
